import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { StartApp } from '../../native/start-app';

@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage {

  constructor(
    public navCtrl: NavController,
    private startApp: StartApp,
        ) {
  }

  //start jpush service
  registerJpush():void {

    this.startApp.start({
      uri:'weixin://qr'
    }).then(res => {
      console.log(res);
    }).catch(error => console.log(error));
  }
}
